package test1;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author: mornd
 * @dateTime: 2023/5/11 - 0:16
 */
public class MyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) {
        System.out.println("myFilter init...");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("myFilter doFilter...");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {
        System.out.println("myFilter destroy...");
    }
}
